namespace KingerRobot.MexicoSailunMDC.Dao;
partial class Db : K8.EF.DbContext
{
    /// <summary>
    /// 基础数据 -产品信息
    /// </summary>
    public DbSet<POProdProduct> ProdProducts { get; set; }
}

/// <summary>
/// 基础数据 -产品信息
/// 表[prod_product]
/// </summary>
[Table("prod_product")]
public class POProdProduct
{
    /// <summary>
    /// 主键，通过雪花算法生成
    /// 主键[prod_product.objid)]
    /// </summary>
    [Key]
    [Column("objid")]
    public long? Id { get; set; }
    /// <summary>
    /// 产品条码
    /// [prod_product.product_code)]
    /// </summary>
    [Column("product_code")]
    public string ProductCode { get; set; }
    /// <summary>
    /// 生产设备Id
    /// [prod_product.md_equip_id)]
    /// </summary>
    [Column("md_equip_id")]
    public long? MdEquipId { get; set; }
    /// <summary>
    /// 物料Id
    /// [prod_product.material_id)]
    /// </summary>
    [Column("material_id")]
    public long? MaterialId { get; set; }
    /// <summary>
    /// 产品批次
    /// [prod_product.product_batch)]
    /// </summary>
    [Column("product_batch")]
    public string ProductBatch { get; set; }
    /// <summary>
    /// 生产日期
    /// [prod_product.md_time)]
    /// </summary>
    [Column("md_time")]
    public DateTime? MdTime { get; set; }
    /// <summary>
    /// 产品质检   0:合格 1:不合格
    /// [prod_product.product_quality)]
    /// </summary>
    [Column("product_quality")]
    public int? ProductQuality { get; set; }
    /// <summary>
    /// [prod_product.task_id)]
    /// </summary>
    [Column("task_id")]
    public long? TaskId { get; set; }
    /// <summary>
    /// 创建时间
    /// [prod_product.create_time)]
    /// </summary>
    [Column("create_time")]
    public DateTime? CreateTime { get; set; }
    /// <summary>
    /// 更新时间
    /// [prod_product.update_time)]
    /// </summary>
    [Column("update_time")]
    public DateTime? UpdateTime { get; set; }
    /// <summary>
    /// 是否可用 0:不可用  1:在用
    /// [prod_product.use_flag)]
    /// </summary>
    [Column("use_flag")]
    public int? UseFlag { get; set; }
    /// <summary>
    /// 1：冻结；0：非冻结
    /// [prod_product.frozen)]
    /// </summary>
    [Column("frozen")]
    public int? Frozen { get; set; }
    /// <summary>
    /// 1:不合格；0:合格
    /// [prod_product.gt_status)]
    /// </summary>
    [Column("gt_status")]
    public string GtStatus { get; set; }
    /// <summary>
    /// [prod_product.itnbr)]
    /// </summary>
    [Column("itnbr")]
    public string Itnbr { get; set; }
    /// <summary>
    /// [prod_product.itdsc)]
    /// </summary>
    [Column("itdsc")]
    public string Itdsc { get; set; }
    /// <summary>
    /// [prod_product.wdate)]
    /// </summary>
    [Column("wdate")]
    public DateTime? Wdate { get; set; }
    /// <summary>
    /// [prod_product.wtime)]
    /// </summary>
    [Column("wtime")]
    public DateTime? Wtime { get; set; }
    /// <summary>
    /// [prod_product.wsht)]
    /// </summary>
    [Column("wsht")]
    public string Wsht { get; set; }
    /// <summary>
    /// [prod_product.wban)]
    /// </summary>
    [Column("wban")]
    public string Wban { get; set; }
    /// <summary>
    /// [prod_product.userid)]
    /// </summary>
    [Column("userid")]
    public string Userid { get; set; }
    /// <summary>
    /// [prod_product.mchid)]
    /// </summary>
    [Column("mchid")]
    public string Mchid { get; set; }
    /// <summary>
    /// 胎胚锁定  0:解锁 1:锁定
    /// [prod_product.tire_lock)]
    /// </summary>
    [Column("tire_lock")]
    public int? TireLock { get; set; }

    /// <summary>
    /// [prod_product.err_cd)]
    /// </summary>
    [Column("err_cd")]
    public string ErrCd { get; set; }
    /// <summary>
    /// [prod_product.err_desc)]
    /// </summary>
    [Column("err_desc")]
    public string ErrDesc { get; set; }
    /// <summary>
    /// 高度
    /// [prod_product.height)]
    /// </summary>
    [Column("height")]
    public int? Height { get; set; }

    /// <summary>
    /// [prod_product.tbm_expiration_time)]
    /// </summary>
    [Column("tbm_expiration_time")]
    public DateTime? TbmExpirationTime { get; set; }
    /// <summary>
    /// [prod_product.mes_id)]
    /// </summary>
    [Column("mes_id")]
    public long? MesId { get; set; }

}


